package final2107.day05.staticmethodref;

public class AbsTest {
    //求某个数的绝对值
    public static int abs(int num,MathOpeClas mathOpeClas){
        return mathOpeClas.getAbs(num);
    }
    public static void main(String[] args) {
//        int result = abs(-10,num-> Math.abs(num));
//        System.out.println(result);
        int result = abs(-20,Math::abs);
        System.out.println(result);

    }
}
